package models;
 
import java.util.*;
import javax.persistence.*;
 
import play.db.jpa.*;
 
@Entity
public class User extends Model {
 
    public String email;
    public String password;
    public String fullname;
    
    public User(String inEmail, String inPassword, String inFullname) {
        email = inEmail;
        password = inPassword;
        fullname = inFullname;
    }
	
	public static User login(String email, String password) {
		return find("byEmailAndPassword", email, password).first();
	}
	
	
 
}